package com.sbhotel.chotellauncher.activity;

import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.widget.TextView;

import com.sbhotel.chotellauncher.R;
import com.sbhotel.chotellauncher.constant.Constants;
import com.sbhotel.chotellauncher.util.Utils;


public class SystemInfoActivity extends BaseActivity {

    TextView uiVersion, androidVersion, mac, sn;

    @Override
    public void initView() {
        uiVersion = findViewById(R.id.tv_ui_version_value);
        androidVersion = findViewById(R.id.tv_android_version_value);
        mac = findViewById(R.id.tv_mac_value);
        sn = findViewById(R.id.tv_sn_value);
    }

    @Override
    public void initData() {
        initTitleBar("系统信息","");

        uiVersion.setText(Constants.UI_VERSION);
        androidVersion.setText(Build.VERSION.RELEASE);
        mac.setText(Utils.getMac2());
        sn.setText(/*Build.SERIAL*/Utils.getDeviceSN());
    }

    @Override
    public int initLayout() {
        return R.layout.activity_sysinfo;
    }

}
